package top.korori.entity.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * 
 * 作品
 * 
 *
 * @author korori
 */
@Getter
@Setter
@Accessors(chain = true)
@ApiModel("作品参数")
public class SvWorkAddReq implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("作品id")
    private Long workId;

    @ApiModelProperty("描述")
    private String desc;

    @NotEmpty(message = "作品封面不能为空")
    @ApiModelProperty("封面地址")
    private String cover;

    @NotEmpty(message = "视频不能为空")
    @ApiModelProperty("视频地址")
    private String url;

    @ApiModelProperty("可见权限（0 公开 1 仅自己）")
    private Integer per;

    @ApiModelProperty("是否允许下载(0 允许 1 不允许)")
    private Integer isDown;

    @ApiModelProperty("发布地址")
    private String addr;

}
